//index.js
//获取应用实例
const app = getApp()
const http=require('../../modules/http.js')
Page({
  data: {
    offset:0,
    programs:[]
  },
  onLoad(){
    var This=this;
    (async function(){
      var res=await http.getData({offset:This.data.offset})
      console.log(res)
      var {programs}=res.data;
      This.setData({
        programs
      })
    })()
  }
})
